package com.xiangyi.teachingsystem.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xiangyi.teachingsystem.dao.CourseResMapper;
import com.xiangyi.teachingsystem.entity.po.CourseRes;
import com.xiangyi.teachingsystem.service.CourseResService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CourseResServiceImpl extends ServiceImpl<CourseResMapper, CourseRes> implements CourseResService {
    @Autowired
    CourseResMapper courseResMapper;
    @Override
    public List<CourseRes> list(Integer courseId) {
        return courseResMapper.list(courseId);
    }

    @Override
    public List<CourseRes> courseResList() {
        return courseResMapper.courseResList();
    }
}
